package com.turing.mission.commandLine;

import com.alibaba.fastjson.JSONObject;
import com.turing.mission.service.MissionService;

public class MyThread extends Thread{

    private MissionService missionService;

    private JSONObject jsonObject;

    public MyThread(JSONObject jsonObject,MissionService missionService){
        this.jsonObject = jsonObject;
        this.missionService = missionService;
    }

    @Override
    public void run() {
        missionService.missonSave(jsonObject);
    }
}
